<admintpl file="header" />
</head>
<body class="J_scroll_fixed">
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('Tui/Agent/checkinfo')}" target="_self">渠道资料审核</a></li>
            <!--<li><a href="{:U('Agent/Agent/add')}" target="_self">添加渠道</a></li>-->
        </ul>
<!--        <form class="well form-search" method="get" action="{:U('Agent/Agent/index')}">
            <div class="search_type cc mb10">
                <div class="mb10">
                    <span class="mr20">
                        渠道类型： 
                        <select class="select_2" name="roleid" id="selected_id">
                            <foreach name="roles"  key="k" item="vo">
                                <php>$r_select=$k==$roleid ?"selected":"";</php>
                                <option value="{$k}"{$r_select}>{$vo}</option>
                            </foreach>
                        </select>
                        &nbsp;&nbsp;
                        渠道账号：
                        <input type="text" name="agentname" style="width: 200px;" value="{$agentname}" placeholder="请输入渠道账号...">
                        &nbsp;&nbsp; 
                        渠道名称：
                        <input type="text" name="nickname" style="width: 200px;" value="{$nickname}" placeholder="请输入渠道名称...">
                        &nbsp;&nbsp;
                        <input type="submit" class="btn btn-primary" value="搜索" />
                    </span>
                </div>
            </div>
        </form>-->

        <form class="js-ajax-form" action="" method="post">
            <table class="table table-hover table-bordered table-list">
                <thead>
                    <tr>
                        <th width="20">ID</th>

                        <!--						<th width="50">渠道类型</th>
                                                                        <th width="50">渠道账号</th>
                                                                        <th width="50">渠道名称</th>-->

                        <th width="50">联系人</th>                                                
                        <th width="50">手机</th>
                        <th width="50">QQ</th>

                        <th width="40">身份证号</th>
                        <th width="50">支付宝帐号</th>
                        <th width="40">银行卡号</th>
                        <th width="70">开户城市</th>
                        <th width="50">开户银行</th>

                        <th width="50">状态</th>
                        <th width="60">审核操作</th>
                    </tr>
                </thead>
                <php>
                    $status=array("3"=>"审核不通过","2"=>"审核通过","1"=>"待审核");
                </php>
                <foreach name="users" item="vo">
                    <tr>
                        <td>{$vo.id}</td>

                        <!--					<td>{$vo.rolename}</td>
                                                                <td>{$vo.user_login}</td>
                                                                <td>{$vo.user_nicename}</td>-->

                        <td>{$vo.user_nicename}</td>
                        <td>{$vo.mobile}</td>
                        <td>{$vo.qq}</td>

                        <td>{$vo.idcard}</td>
                        <td>{$vo.zfb}</td>
                        <td>{$vo.banknum}</td>
                        <td>{$vo.branchname}</td>
                        <td>{$vo.bankname}</td>                                        

                        <td>{$status[$vo['user_status']]}</td>
                        <td>                                           
                            <switch name="vo.user_status">
                                <case value="1">
                                    <a href="{:U('Tui/Agent/pass',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="确定要设为审核通过吗？设为通过后，将发送短信通知用户" >通过</a> | 
                                    <a href="{:U('Tui/Agent/notpass',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn"  data-msg="确定要设为审核不通过吗？" >不通过</a>
                                </case>
                                <case value="2">
                                    <a href="{:U('Tui/Agent/notpass',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn"  data-msg="确定要设为审核不通过吗？" >不通过</a>
                                </case>
                                <case value="3">
                                    <a href="{:U('Tui/Agent/pass',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="确定要设为审核通过吗？设为通过后，将发送短信通知用户" >通过</a>
                                </case>
                            </switch>
                        </td>
                    </tr>
                </foreach>				
            </table>
            <div class="pagination">{$Page}</div>
        </form>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>